﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsByCat.ascx.cs" Inherits="Control_News_NewsByCat" %>
<%@ Register Src="~/Admin/Control/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<div class="box-content" style="margin-top: 10px;">
    <div class="news-user">
        <p class="title-red-01">
            <span class="title-red-04"><strong class="title-red-02"><%# catName %> </strong>
                <label class="title-red-03">
                </label>
            </span>
        </p>
        <asp:Repeater ID="RepNews" runat="server">
            <ItemTemplate>
                <ul style="margin-top: 15px;">
                    <li>
                        <p>
                            <a href='Detail.aspx?NewsId=<%#Eval("Id") %>'>
                                <img src='<%# !string.IsNullOrEmpty(Eval("Photo").ToString()) ? Eval("Photo").ToString() : "img/img-07.png" %>'
                                    class="thumb-01" />
                            </a>
                        </p>
                        <p>
                            <a href='Detail.aspx?NewsId=<%#Eval("Id") %>'><strong class="name">
                                <%#Eval("Title") %>
                            </strong></a>
                        </p>
                        <p>
                            <%#SplitString(Eval("Absolute").ToString(),30)%>
                        </p>
                    </li>
                </ul>
            </ItemTemplate>
        </asp:Repeater>
        <p class="paging">
            <a href="#">1</a> <a href="#">2</a> <a href="#">3</a> <a href="#">4</a> <a href="#">
                5</a> <a href="#">Sau</a>
        </p>
    </div>
</div>
<uc1:Pager ID="Pager1" runat="server" />
